package online.inote.dic.security.constants;

/**
 * @description: Token对象
 * @author XQF.Sui
 * @created 2019年4月30日 下午1:03:41
 * @version 1.0
 */
public class Token {

	public static class RedisKey {
		// Token redis key prefix
		public static final String TOKEN_KEY_PREFIX = "DIC_TOKEN_";
		// Token在Redis中保存的时长1800秒(30分钟)
		public static final long TOKEN_KEY_EXPIRE_SECONDS = 1800;
	}
	
	public static class ClaimKey {
		public static final String USER_NAME = "USER_NAME";
		public static final String PASSWORD = "PASSWORD";
		public static final String USER_PRIVATE_KEY = "USER_PRIVATE_KEY";
	}
	
	public static class DefaultInfo {
		public static final String ISSUER = "DIC";
		public static final String AUDIENCE = "DIC";
	}
	
	public static class WebKey {
		public static final String TOKEN_KEY = "X-Token";
	}
}